package com.csun.cmny.provider.model.dto.volunteer;

import com.csun.cmny.provider.validator.UacVolunteerAddValidator;
import com.csun.cmny.provider.validator.UacVolunteerEditValidator;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * @Auther: chisj chisj@foxmal.com
 * @Date: 2019-06-03 12:00
 * @Description: the class volunteer modify pwd dto
 */
@Data
public class VolunteerModifyPwdDto {

    /**
     * 志愿者Id
     */
    @NotNull(message = "{volunteer.id.null}")
    private Long id;

    /**
     * 新密码
     */
    @NotNull(message = "{volunteer.password.null}")
    @NotEmpty(message = "{volunteer.password.null}")
    private String password;

    /**
     * 确认密码
     */
    @NotNull(message = "{volunteer.confirm.password.null}")
    @NotEmpty(message = "{volunteer.confirm.password.null}")
    private String confirmPwd;
}
